package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.entity.OpenCompany;
import com.qianyu.project.mapper.provider.gsl.OpenCompanyMapperProvider;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 发票开票登记表 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface OpenCompanyMapper extends BaseMapper<OpenCompany> {
    @SelectProvider(type = OpenCompanyMapperProvider.class,method = "selecti")
    List<OpenCompany> selectiList(OpenCompany i);
    @SelectProvider(type = OpenCompanyMapperProvider.class,method = "selectByid")
    OpenCompany selectiById(String id);
    @InsertProvider(type = OpenCompanyMapperProvider.class,method = "inserti")
    int inserti(OpenCompany i);
    @UpdateProvider(type = OpenCompanyMapperProvider.class, method = "updatei")
    int  uppaeti(OpenCompany i);
    @DeleteProvider(type=OpenCompanyMapperProvider.class,method = "deletei")
    int deletei(String id);

}
